﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HRManagerUI/HrManager.Master"
    AutoEventWireup="true" CodeBehind="PromotionEmployee.aspx.cs" Inherits="HRM.UI.HRManagerUI.EvaluationUI.PromotionEmployee" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">
    <link href="../../../Styles/Employee/EvaluateEmployeeCss.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/htmlDatePicker.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/htmlDatePicker.js" type="text/javascript"></script>
        <script type="text/javascript" language="javascript">

            function CheckField() {
                if (document.getElementById("<%=txtDate.ClientID%>").value == "") {
                    document.getElementById("<%=lblPromotion.ClientID%>").textContent = "Please Enter Promotion Date!";
                    document.getElementById("<%=lblPromotion.ClientID%>").style.color = "red";
                    document.getElementById("<%=txtDate.ClientID%>").focus();
                    return false;
                }

                if (document.getElementById("<%=selectDesig.ClientID%>").Value == 0) {
                    document.getElementById("<%=lblPromotion.ClientID%>").textContent = "Please Select Employee Designation!";
                    document.getElementById("<%=lblPromotion.ClientID%>").style.color = "red";
                    document.getElementById("<%=selectDesig.ClientID%>").focus();
                    return false;
                }
                return true;
            }
  

    </script>
    <fieldset>
        <legend>Promotion</legend>
        <table width="100%">
            <tr>
                <td colspan="2" align="center">
                    <asp:Label runat="server" ID="lblSearch"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 35%">
                    Employee Code
                </td>
                <td>
                    <input type="text" runat="server" id="txtEmpCode" class="searchbox"/>
                    <input type="submit" runat="server" id="btnSearch" value="Search Employee" onserverclick="SearchEmployee" class="btnCss"/>
                </td>
            </tr>
        </table>
        <fieldset>
            <legend>Evaluation Report of the Employee</legend>
            <table width="100%" runat="server" id="firstinfoTb">
                <tr>
                    <td style="width:60%">
                        <table class="statusInfo" width="100%">
                            <tr>
                                <td colspan="2" class="incrementTitle">
                                    Employee Status&nbsp;<asp:Label runat="server" ID="lblEmpStatus" BorderStyle="Double"
                                        Font-Bold="True" ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                   Name :
                                </td>
                                <td class="lebellTD">
                                    <asp:Label runat="server" ID="lblempName"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Designation :
                                </td>
                                <td class="lebellTD">
                                    <asp:Label runat="server" ID="lblDesignation"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Project :
                                </td>
                                <td class="lebellTD">
                                    <asp:Label runat="server" ID="lblProject"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Joining Date :
                                </td>
                                <td class="lebellTD">
                                    <asp:Label runat="server" ID="lblJoiningDate"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Birth Date :
                                </td>
                                <td class="lebellTD">
                                    <asp:Label runat="server" ID="lblBirth"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="incrementTitle">
                                    Last Evaluation Information
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Evaluated By :
                                </td>
                                <td class="lebellTD">
                                    <asp:Label runat="server" ID="lblEvaluatedBy"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Evaluation Date :
                                </td>
                                <td class="lebellTD">
                                    <asp:Label runat="server" ID="lblEvaDate"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Skill :
                                </td>
                                <td class="lebellTD">
                                    <img runat="server" id="skillImage" class="imgEval" />
                                    <span class="fontspan">
                                        <asp:Label runat="server" ID="lblSkill"></asp:Label></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Punctuality :
                                </td>
                                <td class="lebellTD">
                                    <img runat="server" id="puncImage" class="imgEval" />
                                    <span class="fontspan">
                                        <asp:Label runat="server" ID="lblPunctuality"></asp:Label></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Communication :
                                </td>
                                <td class="lebellTD">
                                    <img runat="server" id="commImage" class="imgEval" />
                                    <span class="fontspan">
                                        <asp:Label runat="server" ID="lblCommunication"></asp:Label></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="lebelTD">
                                    Comments :
                                </td>
                                <td class="lebellTD">
                                    <asp:Label runat="server" ID="lblComments" CssClass="lblComment"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top" style="width:40%">
                       <table runat="server" id="promotionHistoryTb" class="statusInfo">
                           <tr>
                               <td>
                                     <asp:Label runat="server" ID="lblCountPromotion"></asp:Label>
                            <asp:GridView runat="server" ID="promotionHistoryGdv" AutoGenerateColumns="False"
                                BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" CssClass="GridViewFooterStyle"
                                Width="100%">
                                <Columns>
                                    <asp:BoundField DataField="PreDesignation" HeaderText="Pre-Designation" />
                                    <asp:BoundField DataField="PresentDesig" HeaderText="Present-Designation" />
                                    <asp:BoundField DataField="Date" HeaderText="Promotion Date" />
                                </Columns>
                                <FooterStyle CssClass="GridViewFooterStyle" />
                                <HeaderStyle Font-Bold="True" CssClass="GridViewHeaderStyle" />
                                <PagerStyle CssClass="GridViewFooterStyle" HorizontalAlign="Center" />
                                <RowStyle BackColor="White" ForeColor="#003399" />
                                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                                <SortedDescendingHeaderStyle BackColor="#002876" />
                            </asp:GridView>
                               </td>
                           </tr>
                       </table>
                    
                    </td>
                    <td valign="top">
                         <div align="center" runat="server" id="imageDiv">
                            <asp:Image ID="empImage" runat="server" CssClass="empImage" />
                        </div>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset id="punishment" runat="server">
            <legend>Employee Punishment history</legend>
            <asp:Label runat="server" ID="lblPunished"></asp:Label>
            <asp:GridView runat="server" ID="punishmentGdv" Width="100%" AutoGenerateColumns="False"
                BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                CellPadding="3" CssClass="GridviewStyle">
                <Columns>
                    <asp:BoundField DataField="Punishment" HeaderText="Punishment Name" />
                    <asp:BoundField DataField="PunishedProcedure" HeaderText="Punished Procedure" />
                    <asp:BoundField DataField="PunishedBy" HeaderText="Punished By" />
                    <asp:BoundField DataField="Remarks" HeaderText="Remarks" />
                    <asp:BoundField DataField="Date" HeaderText="Date" />
                    <asp:BoundField DataField="Status" HeaderText="Status" />
                </Columns>
                <FooterStyle CssClass="GridViewFooterStyle" />
                <HeaderStyle Font-Bold="True" CssClass="GridViewHeaderStyle" />
                <PagerStyle CssClass="GridViewFooterStyle" HorizontalAlign="Center" />
                <RowStyle ForeColor="#000066" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#007DBB" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#00547E" />
            </asp:GridView>
        </fieldset>
        <fieldset runat="server" id="promotedTb">
            <legend>Promote as</legend>
            <div align="center">
                <asp:Label runat="server" ID="lblPromotion"></asp:Label></div>
            <table width="50%" style="margin-left: 20%">
                <tr>
                    <td colspan="2" class="incrementTitle">
                        Promoted Employee
                    </td>
                </tr>
                <tr>
                    <td class="lebelTD">
                        Date
                    </td>
                    <td class="lebellTD">
                        <input type="text" runat="server" id="txtDate" class="textboxinputdate"  readonly
                        onclick="GetDate(this);" /><span class="estaricStar">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="lebelTD">
                        Present Designation
                    </td>
                    <td class="lebellTD">
                        <input type="text" runat="server" id="txtPresentDesig" readonly="readonly" class="textboxinputdegignation" />
                    </td>
                </tr>
                <tr>
                    <td class="lebelTD">
                        Promot As
                    </td>
                    <td class="lebellTD">
                        <select runat="server" id="selectDesig" class="dropdownCsss">
                        </select><span class="estaricStar">*</span>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <input type="submit" runat="server" id="btnPromot" value="Promotion" onserverclick="SavePromotion"
                            class="btnCss" onclick="return CheckField()" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </fieldset>
</asp:Content>
